package com.sunqianhu.design_patterns_23.behavioral.state;

public class Client {
    public static void main(String[] args) {
        Light light = new Light();
        light.pressSwitch(); // 打开电灯
        light.pressSwitch(); // 关闭电灯
        light.pressSwitch(); // 再次打开电灯
    }
}
